home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
Demos
/
Bombardier_PC
/
BSCRIPTS.CST
/
00115_Script_advant_button
< prev
next >
Wrap
Text File
|
1999-04-25
|
3KB
|
131 lines
-- ⌐ 1998 @radical.media, inc. & Concurrent New Media Group, L.L.C.
-- Developed for Bombardier, Inc.
--
-- All programming developed by:
-- Robert Fabricant, Valerie Valoueva, Ossi Shaked,
-- Henry Sauvageot, Chris Howell & Chris Girand
--
-- Use of this code by parties other than @radical.media, inc. or their
--agents
-- without the express written consent of @radical.media, inc. AND Concurrent
-- New Media Group, L.L.C. is strictly prohibited.
------------------------------------------------------
property mySprite, NeutralName, RolloverName, startAnimation, maxSlideSpeed,AnimationIsOver,planeName,slideSpeed,memberCount
on new me
set startAnimation = FALSE
set AnimationIsOver = FALSE
set maxSlideSpeed = 0
set mySprite = the spriteNum of me
set NeutralName = getNeutralName(me, mySprite)
set RolloverName = NeutralName&"-rol"
set planeName = "bja"
end
on getPlaneName me
set Name = NeutralName
repeat with i = the Number of Chars in Name down to 1
if char i of Name <> "_" then
delete char i of Name
else
delete char i of Name
exit repeat
end if
end repeat
return Name
end
on mouseEnter me
if not AnimationIsOver then
set the member of sprite mySprite = member RolloverName
if startAnimation = FALSE then puppetsound 3, "mouse2a"
end if
end
on mouseLeave me
if not AnimationIsOver then
set the member of sprite mySprite = member NeutralName
end if
end
on mouseUp me
set startAnimation = TRUE
set memberCount = 1
set slideSpeed = 0
puppetsound 3,"hydmach"
end
on getNeutralName me,SpriteNum
set aMember = the member of sprite spriteNum
set Name = the name of member aMember
if Name contains "-" then
repeat with i = the Number of Chars of Name down to 1
if char i of Name <> "-" then
delete char i of Name
else
delete char i of Name
exit repeat
end if
end repeat
end if
return Name
end
on exitFrame me
global menuController
if startAnimation then
slideButton me
end if
if AnimationIsOver then
deselect menuController
sound stop 2
sound stop 1
go to "advantages"
end if
end
on slideButton me
set the stretch of sprite mySprite = FALSE
if slideSpeed >= maxSlideSpeed then
set slideSpeed = 0
set the member of sprite mySprite = memberCount&"-"&planeName
updatestage
-- put the member of sprite mySprite
set memberCount = memberCount+1
if memberCount >= 17 then
set startAnimation = FALSE
set AnimationIsOver = TRUE
end if
end if
set slideSpeed = slideSpeed+1
end